package cn.elwy.rcp.demo.service;

import org.eclipse.ui.services.AbstractServiceFactory;
import org.eclipse.ui.services.IServiceLocator;

public class BuildManagerServiceFactory extends AbstractServiceFactory {

  @Override
  public Object create(Class serviceInterface, IServiceLocator parentLocator, IServiceLocator locator) {
    if (serviceInterface == null) {
      return null;
    }
    if (serviceInterface.equals(IBuildManagerQueryService.class)) {
      return new BuildManagerQueryService();
    }
    return null;
  }

}
